package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.AchievementInfo;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.Map;

/**
 * Created by 71468 on 2018/3/27.
 */

public interface GetAchievementContractor {
    interface Model {
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);
        void getAchievement(Map<String, Object> request);
    }

    interface View extends BaseView {
        void onGetPerformanceDataSuccess(AchievementInfo info);
    }

    interface Presenter {
        void getPerformance();

        void getPerformance(String startTime, String endTime);
    }

    interface CallBack extends BaseHttpListener {
        void onGetDataSuccess(BaseResponse<AchievementInfo> response);
    }
}
